﻿@model EADCA3MVCApp.Models.ExistingServer

@{
    ViewBag.Title = "ExistingServer";
}

<h2>Can you save by moving to the Cloud?</h2>
<h4>Just enter the details of your existing Server below, and we'll do all the work</h4>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Existing Server</legend>
        <br />

        <div class="display-label">
            @Html.LabelFor(model => model.ServerCost)
        </div>
        <div class="display-field">
            €@Html.EditorFor(model => model.ServerCost)
            @Html.ValidationMessageFor(model => model.ServerCost)
        </div>
        <p>Note: Average Server Cost is usually €950. You can also <a href="http://content.dell.com/ie/en/business/d/campaigns/first-server-solutions-lp-ie.aspx?c=ie&l=en&s=bsd " target="_blank">click here, </a>to get prices</p>

        <div class="display-label">
            @Html.LabelFor(model => model.MaintainanceCost)
        </div>
        <div class="display-field">
            €@Html.EditorFor(model => model.MaintainanceCost)
            @Html.ValidationMessageFor(model => model.MaintainanceCost)
        </div>
        <p>Note: Average Maintainance Cost is usually €25 per month</p>

        <div class="display-label">
            @Html.LabelFor(model => model.SoftwareLicenceCost)
        </div>
        <div class="display-field">
            €@Html.EditorFor(model => model.SoftwareLicenceCost)
            @Html.ValidationMessageFor(model => model.SoftwareLicenceCost)
        </div>
        <p>Note: Average Software Lience Cost is usually €24 per month</p>

        <div class="display-label">
            @Html.LabelFor(model => model.NoOfServers)
        </div>
        <div class="display-field">
            @Html.EditorFor(model => model.NoOfServers)
            @Html.ValidationMessageFor(model => model.NoOfServers)
        </div>
        <p>Note: We recommend a minimum of 2 Servers</p>

        <p>
            <input type="submit" value="Calculate Total Cost of Existing Server" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
